package com.sun.jdk.date.jdk8after;

import java.time.Clock;
import java.time.LocalDateTime;

public class Java8ClockDemo {

    private static void test1(){
        Clock clock = Clock.systemDefaultZone();
        LocalDateTime now = LocalDateTime.now(clock);
        System.out.println("now = " + now);
    }
    public static void main(String[] args) {
        test1();
    }
}
